package edu.sctu.practice.class01.renpingan.assign03.geometricobject;

/**
 * Created by Administrator on 2015/10/22.
 */
public abstract class GeometricObject {

    protected String color;
    protected int r;
    protected int height;
    protected int whight;


    public GeometricObject(int r, String color) {
        this.r = r;
        this.color = color;
    }

    public GeometricObject(int height, int whight, String color) {
        this.height = height;
        this.whight = whight;
        this.color = color;
    }

    //求面积
    public abstract float findArea();

    //求周长
    public abstract float findPerimeter();
}
